package com.supermarket.service;

import com.supermarket.entity.Purchase;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface PurchaseService {
    List<Purchase> findPurchaseAll();

    List<Purchase> findByPage();

    Integer findCount();

    void add(Purchase purchase);

    void deleteById(Integer purchaseID);

    void updatePurchase(Purchase purchase);

    void deleteByIds(Integer [] ids);

    List<Purchase> findByIds(Integer[] ids);

    void save(MultipartFile file);
}
